<template>
  <div class="fundodoo-features-action">
    <el-button type="primary" size="mini" icon="el-icon-folder-add" @click="timeoutClick(addGoods)">增加</el-button>
  </div>
</template>

<script>

export default {
  name: 'GoodsAction',
  components: {

  },
  props: {

  },
  data() {
    return {
      timeout: null

    }
  },
  watch: {

  },
  created() {

  },
  beforeMount() {

  },
  mounted() {
    this.$nextTick(function() {

    })
  },
  methods: {
    addGoods() {
      this.$router.push({ name: 'goods-add' })
    },
    timeoutClick(func) {
      clearTimeout(this.timeout)
      this.timeout = setTimeout(() => {
        func()
      }, 98)
    }
  }
}

</script>
